//
//  UIImage+Edit.m
//  LYPhotos
//
//  Created by 美鑫科技 on 16/5/18.
//  Copyright © 2016年 MorpLCP. All rights reserved.
//

#import "UIImage+Edit.h"

@implementation UIImage (Edit)

// 修改图片大小
- (UIImage *)changeSize:(CGSize)size{
    UIGraphicsBeginImageContext(size);
    [self drawInRect:CGRectMake(0, 0, size.width, size.height)];
    UIImage *changeImg=UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return changeImg;
}

@end
